package lossy;

import java.io.Serializable;
import java.util.Arrays;

public class Block implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5659080464864734137L;
	private double[][] block;

	public Block(int n) {
		this.block = new double[n][n];
	}

	public Block(double[][] block) {
		this.block = block;
	}

	public double[][] getBlock() {
		return block;
	}

	public void setBlock(double[][] block) {
		this.block = block;
	}

	@Override
	public String toString() {
		String s= "";
		for (double[] dbl : block) {
			   s += Arrays.toString(dbl) + "\n";
		}
		
		return "Block [block=" + s + "]";
	}
}
